package com.lfs.service.impl;

import com.lfs.annotation.DataSource;
import com.lfs.dao.TestDao;
import com.lfs.enums.DataSourceType;
import com.lfs.service.ITestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TestService implements ITestService {


    @Autowired
    private TestDao testDao;

    @Override
    public List<Map<String, Object>> getAll() {
        return testDao.getAll();
    }

    @Override
    @DataSource(value = DataSourceType.TEST)
    public List<Map<String, Object>> getLfs() {
        return testDao.getLfs();
    }

}
